﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="agents.aspx.vb" Inherits="GozoFarmhouses.WebForm3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">

    <section class="banner">
        <img src="Images/addPropertBanner.jpg" />
    </section>

    <section class="agents">
        <div class="row"> 
            <div class="large-12 column"> 
                <div class="title">
                    <h1>OUR AGENTS</h1>
                </div>
            </div>
            <div class="large-12 column" style="margin:20px 0 0 0;">
                <div class="row">
                    <asp:ListView ID="ListView3" runat="server" DataSourceID="SqlDataSource3">
                        <ItemTemplate>
                            <div class="large-6 column"> 
                                <div class="agent">
                                    <a href="profile.aspx?agent=<%# Eval("ID")%>"><img src="<%# Eval("agentPhoto")%>" /></a>
                                    <h4><%# Eval("agentname")%> <%# Eval("agentSurname")%> </h4>
                                    <p><%# Eval("agentDescription")%> </p>
                                    <h5><span>Call:</span><%# Eval("agentPhone")%></h5>
                                    <h5><span>Company:</span><%# Eval("agentCompany")%></h5>
                                </div>
                            </div>
                        </ItemTemplate>
                  </asp:ListView>
                  <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:gozoFarmhouses2 %>" ProviderName="<%$ ConnectionStrings:gozoFarmhouses2.ProviderName %>" SelectCommand="SELECT * FROM Agents"></asp:SqlDataSource>
                </div>
            </div>
        </div>
    </section>

</asp:Content>
